package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CommunityRooms;
import com.ruoyi.system.domain.dto.CommunityRoomsDto;

/**
 * roomsMapper接口
 *
 * @author yhb
 * @date 2024-03-24
 */
public interface CommunityRoomsMapper 
{
    /**
     * 查询rooms
     *
     * @param id rooms主键
     * @return rooms
     */
    public CommunityRooms selectCommunityRoomsById(Long id);

    /**
     * 查询rooms列表
     *
     * @param communityRoomsDto rooms
     * @return rooms集合
     */
    public List<CommunityRooms> selectCommunityRoomsList(CommunityRoomsDto communityRoomsDto);

    /**
     * 新增rooms
     *
     * @param communityRooms rooms
     * @return 结果
     */
    public int insertCommunityRooms(CommunityRooms communityRooms);

    /**
     * 修改rooms
     *
     * @param communityRooms rooms
     * @return 结果
     */
    public int updateCommunityRooms(CommunityRooms communityRooms);

    /**
     * 删除rooms
     *
     * @param id rooms主键
     * @return 结果
     */
    public int deleteCommunityRoomsById(Long id);

    /**
     * 批量删除rooms
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommunityRoomsByIds(Long[] ids);

    List<CommunityRooms> selectCommunityRoomsPurposeList(Long purposeId);
}
